#ifndef USER_H
#define USER_H
#include "public.hpp"
#include<string>
using namespace std;
class User{
public:
    User(int id = -1, string name = "", string pwd = "", string state = "offline"){
        id_ = id;
        name_ = name;
        password_ = pwd;
        state_ = state;
    }

    void set_id(int id){
        id_ = id;
    }
    
    void set_name(string name){
        name_ = name;
    }

    void set_password(string pwd){
        password_ = pwd;
    }
    
    void set_state(string state){
        state_ = state;
    }

    int get_id() const {
        return id_;
    }

    string get_name() const {
        return name_;
    }

    string get_password() const {
        return password_;
    }

    string get_state() const {
        return state_;
    }   
    
private:
    int id_;
    string name_;
    string password_;
    string state_;
};

#endif // !USER_H
